package com.oo.inherit_3.bird;

/**
 * Bird--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 09:59
 **/
public class Bird {

    private String name;

    private String color;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Bird(String name, String color) {
        this.name = name;
        this.color = color;
    }

    public Bird() {
    }

    protected void fly() {
        System.out.println("我是鸟，我会飞");
    }

    protected void eat() {
        System.out.println("我是鸟，我吃的不是饭是寂寞");
    }

}
